﻿@model Common.Contract.Authentication.Record.UserRecord
<nav class="" role="navigation">
    <div class="nav toggle">
        <a id="menu_toggle"><i class="fa fa-bars"></i></a>
    </div>
    <img src="/Images/LOGO/logo-VPBank-SME-ok.png" style="padding-top: 8px;height: 38px;" />
    <ul class="nav navbar-nav navbar-right">
        <li class="">
            <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                <img src="~/Images/avatar/@Model.Avatar" alt="">@Model.FullName
                <span class=" fa fa-angle-down"></span>
            </a>
            <ul class="dropdown-menu dropdown-usermenu pull-right">
                @*<li>
                        <a href="javascript:;">  Profile</a>
                    </li>
                    <li>
                        <a href="javascript:;">
                            <span class="badge bg-red pull-right">50%</span>
                            <span>Settings</span>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:;">Help</a>
                    </li>*@
                <li>
                    <a href="/account/logout/@Model.UserName.ToLower()"><i class="fa fa-sign-out pull-right"></i> Log Out</a>
                </li>
            </ul>
        </li>
        <li role="presentation" class="dropdown">
            @{
                foreach (var i in SMECustomerWebsite.Controllers.core.SiteLanguages.AvailableLanguages)
                {
                    if (!SMECustomerWebsite.Controllers.core.SiteLanguages.GetCurrentLanguage().Equals(i.LangCultureName))
                    {
                        @Html.ActionLink(" ", "ChangeLanguage", "System", new { lang = i.LangCultureName }, new { @class = "dropdown-toggle info-lang lang-" + i.LangCultureName, id = "change-lang", data_toggle = "tooltip", data_placement = "bottom", title = "", data_original_title = i.LangFullName })
                    }

                }
            }
        </li>
        @if (Model.GroupIdentifier.Equals("4"))
        {
            <li role="presentation" class="dropdown">
                @Html.Action("AlertHeader", "System")
            </li>
        }
    </ul>
</nav>